<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Helper extends Start_Controller {

	public function __construct(){
		parent::__construct();
	}
	
	
	public function index()
	{
		
	}
 
	/**
	 * 自动缩略图
	 * 参数演示  ：http://www.binarymoon.co.uk/demo/timthumb-basic/
	 * 使用方法：http://code.google.com/p/timthumb/wiki/HowTo
	 */	 
	public function thumb()
	{
	$this->load->library('thumb');
	$test=new thumb();  
	$src = FCPATH.$this->input->get('src');
	$w = $this->input->get('w');
	$h = $this->input->get('h');
	$a = $this->input->get('a');
 
	$test->SetVar($src,'link');  
	$test->BackFill($src,$w,$h);  
 
	
	}
    
	
	
	
}









